<?php
/* @var $this AlunoController */
/* @var $model UsuarioAluno */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'ata-form',
        'enableAjaxValidation' => true,
        'enableClientValidation' => true,
    ));
    ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'data_defesa'); ?>
        <?php echo $form->textField($model, 'data_defesa'); ?>
        <?php echo $form->error($model, 'data_defesa'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'estagio_id'); ?>
        <?php echo $form->textField($model, 'estagio_id'); ?>
        <?php echo $form->error($model, 'estagio_id'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'titulo'); ?>
        <?php echo $form->textField($model, 'titulo'); ?>
        <?php echo $form->error($model, 'titulo'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'relatorio'); ?>
        <?php echo $form->textArea($model, 'relatorio'); ?>
        <?php echo $form->error($model, 'relatorio'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Criar' : 'Editar'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div>